package com.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.content.model.dto.AddCourseDto;
import com.content.model.dto.CourseBaseInfoDto;
import com.content.model.dto.QueryCourseParamsDto;
import com.content.model.dto.UpdateCourseDto;
import com.content.model.po.CourseBase;
import com.content.model.po.CourseTeacher;
import com.content.base.model.PageParams;
import com.content.base.model.PageResult;

import java.util.List;

public interface CourseBaseService extends IService<CourseBase> {

    /**
     * 课程查询接口
     * @param pageParams
     * @param queryCourseParamsDto
     * @return
     */
    PageResult<CourseBase> getCourseInfo(Long companyId,PageParams pageParams, QueryCourseParamsDto queryCourseParamsDto);

    CourseBaseInfoDto addCourseBase(Long companyId,AddCourseDto addCourseDto);

    CourseBaseInfoDto updateByCourseId(long l, UpdateCourseDto updateCourseDto);

    CourseBaseInfoDto getCourseInfoByCourseId(Long courseId);

    List<CourseTeacher> getCourseTeachers(Long courseId);

    /**
     * @description 提交审核
     * @param courseId  课程id
     * @return void
     * @author Mr.M
     * @date 2022/9/18 10:31
     */
    public void commitAudit(Long companyId,Long courseId);
}
